﻿Imports System.Drawing
Public Class IconPackage
    Dim mIconPath As String
    Shared Function GetDefaultIcon(ByVal mIconType As IconType) As Icon
        Dim mIcon As Icon = Nothing
        Select Case mIconType
            Case IconType.Books
                mIcon = My.Resources.Books
            Case IconType.calendar
                mIcon = My.Resources.Calendar
            Case IconType.Clock
                mIcon = My.Resources.clock
            Case IconType.Cut
                mIcon = My.Resources.cut
            Case IconType.Copy
                mIcon = My.Resources.copy
            Case IconType.Delete
                mIcon = My.Resources.DELETE
            Case IconType.NewFile
                mIcon = My.Resources._New
            Case IconType.OpenFile
                mIcon = My.Resources.Open
            Case IconType.Paste
                mIcon = My.Resources.paste
            Case IconType.Redo
                mIcon = My.Resources.redo
            Case IconType.Search
                mIcon = My.Resources.search
            Case IconType.Save
                mIcon = My.Resources.save
            Case IconType.Search_Previous
                mIcon = My.Resources.Search_Previous
            Case IconType.Search_Next
                mIcon = My.Resources.Search_Next
            Case IconType.SelectALL
                mIcon = My.Resources.Select_All
            Case IconType.Undo
                mIcon = My.Resources.undo
            Case IconType.Insert
                mIcon = My.Resources.Insert
            Case IconType.JumpTo
                mIcon = My.Resources.Go_To_Line
            Case IconType.HeightLight
                mIcon = My.Resources.higlighter
            Case IconType.SaveAsHTML
                mIcon = My.Resources.Save_As_Html
            Case IconType.OK
                mIcon = My.Resources.ok
            Case IconType.Cross
                mIcon = My.Resources.cross
            Case IconType.ExitApp
                mIcon = My.Resources._exit
            Case IconType.Print
                mIcon = My.Resources.print
            Case IconType.PageSetup
                mIcon = My.Resources.printer_setup
            Case IconType.PrintPreview
                mIcon = My.Resources.print_preview
            Case IconType.Options
                mIcon = My.Resources.Options
            Case IconType.Settings
                mIcon = My.Resources.settings
            Case IconType.SyntaxHeightLight
                mIcon = My.Resources.syntax_highlight
            Case IconType.WordWrap
                mIcon = My.Resources.Word_Wrap
            Case IconType.Columns
                mIcon = My.Resources.Columns
            Case IconType.SaveAs
                mIcon = My.Resources.Save_As
            Case IconType.Lock
                mIcon = My.Resources.lock
            Case IconType.Flag
                mIcon = My.Resources.Flag
            Case IconType.Flag_Delete
                mIcon = My.Resources.Flag_Delete
            Case IconType.Flag_Next
                mIcon = My.Resources.Flag_Next
            Case IconType.Flag_Previous
                mIcon = My.Resources.Flag_Previous
        End Select
        Return mIcon
    End Function
    Shared Function GetDefaultImage(ByVal mIconType As IconType) As Image
        Return GetDefaultIcon(mIconType).ToBitmap
    End Function
    Enum IconType
        ''' <summary>
        ''' 书
        ''' </summary>
        ''' <remarks></remarks>
        Books
        ''' <summary>
        ''' 日历
        ''' </summary>
        ''' <remarks></remarks>
        calendar
        ''' <summary>
        ''' 时钟
        ''' </summary>
        ''' <remarks></remarks>
        Clock
        ''' <summary>
        ''' 列模式
        ''' </summary>
        ''' <remarks></remarks>
        Columns
        ''' <summary>
        ''' 复制
        ''' </summary>
        ''' <remarks></remarks>
        Copy
        ''' <summary>
        ''' 剪切
        ''' </summary>
        ''' <remarks></remarks>
        Cut
        ''' <summary>
        ''' 红色的大叉
        ''' </summary>
        ''' <remarks></remarks>
        Cross
        ''' <summary>
        ''' 删除
        ''' </summary>
        ''' <remarks></remarks>
        Delete
        ''' <summary>
        ''' 书签
        ''' </summary>
        ''' <remarks></remarks>
        Flag
        ''' <summary>
        ''' 下一个书签
        ''' </summary>
        ''' <remarks></remarks>
        Flag_Next
        ''' <summary>
        ''' 上一个书签
        ''' </summary>
        ''' <remarks></remarks>
        Flag_Previous
        ''' <summary>
        ''' 删除书签
        ''' </summary>
        ''' <remarks></remarks>
        Flag_Delete
        ''' <summary>
        ''' 插入
        ''' </summary>
        ''' <remarks></remarks>
        Insert
        ''' <summary>
        ''' 新建
        ''' </summary>
        ''' <remarks></remarks>
        NewFile
        ''' <summary>
        ''' 打开
        ''' </summary>
        ''' <remarks></remarks>
        OpenFile
        ''' <summary>
        ''' 粘帖
        ''' </summary>
        ''' <remarks></remarks>
        Paste
        ''' <summary>
        ''' 重做
        ''' </summary>
        ''' <remarks></remarks>
        Redo
        ''' <summary>
        ''' 查找
        ''' </summary>
        ''' <remarks></remarks>
        Search
        ''' <summary>
        ''' 查找
        ''' </summary>
        ''' <remarks></remarks>
        Search_Next
        ''' <summary>
        ''' 查找
        ''' </summary>
        ''' <remarks></remarks>
        Search_Previous
        ''' <summary>
        ''' 全选
        ''' </summary>
        ''' <remarks></remarks>
        SelectALL
        ''' <summary>
        ''' 保存
        ''' </summary>
        ''' <remarks></remarks>
        Save
        ''' <summary>
        ''' 保存为HTML
        ''' </summary>
        ''' <remarks></remarks>
        SaveAsHTML
        ''' <summary>
        ''' 另存为
        ''' </summary>
        ''' <remarks></remarks>
        SaveAs
        ''' <summary>
        ''' 高亮显示
        ''' </summary>
        ''' <remarks></remarks>
        HeightLight
        ''' <summary>
        ''' 转到
        ''' </summary>
        ''' <remarks></remarks>
        JumpTo
        ''' <summary>
        ''' 锁定
        ''' </summary>
        ''' <remarks></remarks>
        Lock
        ''' <summary>
        ''' OK
        ''' </summary>
        ''' <remarks></remarks>
        OK
        ''' <summary>
        ''' 退出
        ''' </summary>
        ''' <remarks></remarks>
        ExitApp
        ''' <summary>
        ''' 打印
        ''' </summary>
        ''' <remarks></remarks>
        Print
        ''' <summary>
        ''' 打印设定
        ''' </summary>
        ''' <remarks></remarks>
        PageSetup
        ''' <summary>
        ''' 打印预览
        ''' </summary>
        ''' <remarks></remarks>
        PrintPreview
        ''' <summary>
        ''' 选项
        ''' </summary>
        ''' <remarks></remarks>
        Options
        ''' <summary>
        ''' 选项2
        ''' </summary>
        ''' <remarks></remarks>
        Settings
        ''' <summary>
        ''' 语法高亮
        ''' </summary>
        ''' <remarks></remarks>
        SyntaxHeightLight
        ''' <summary>
        ''' 折行显示
        ''' </summary>
        ''' <remarks></remarks>
        WordWrap
        ''' <summary>
        ''' 撤销
        ''' </summary>
        ''' <remarks></remarks>
        Undo
    End Enum
End Class
